package org.come.login;

import java.awt.Color;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;

import javax.swing.JLabel;
public class DownMouslisten implements MouseListener {
	private LoginJpanel loginJpanel;
	private String text;
	private JLabel jlabel;
	public DownMouslisten(LoginJpanel loginJpanel, String text, JLabel jlabel) {
		super();
		this.loginJpanel = loginJpanel;
		this.text = text;
		this.jlabel = jlabel;
	}

	@Override
	public void mouseClicked(MouseEvent e) {
		// TODO Auto-generated method stub
		loginJpanel.getLoginView().cshtext(text);
	}

	@Override
	public void mousePressed(MouseEvent e) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseReleased(MouseEvent e) {
		// TODO Auto-generated method stub
	}

	@Override
	public void mouseEntered(MouseEvent e) {
		// TODO Auto-generated method stub
		jlabel.setForeground(Color.RED);
	}

	@Override
	public void mouseExited(MouseEvent e) {
		// TODO Auto-generated method stub
		jlabel.setForeground(Color.WHITE);
	}
}
